<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>通知公告</title>
    <link rel="stylesheet" href="../../addons/party_member/public/css/weui.min.css">
    <link rel="stylesheet" href="../../addons/party_member/public/css/jquery-weui.min.css">

    <!-- body 最后 -->
    <script src="../../addons/party_member/public/js/jquery.min.js"></script>
    <script src="../../addons/party_member/public/js/jquery-weui.min.js"></script>

    <!-- 如果使用了某些拓展插件还需要额外的JS -->
    <script src="../../addons/party_member/public/js/swiper.min.js"></script>
    <script src="../../addons/party_member/public/js/city-picker.min.js"></script>
    <script src="../../addons/party_member/public/js/function.js"></script>
    <style>
        body{
            margin: 0;
            padding: 0;
            background: #f9f9f9;
        }
        .head{
            display: block;
            position: relative;
            width: 100%;
            height: 43px;
            background: #ffffff;
            text-align: center;
            font-size: 18px;
            line-height: 43px;
            font-family: -webkit-body;
            color: #333333;

        }
        .head_return{
            display: inline-block;
            position: absolute;
            left: 10px;
            top: 10px;
            width: 20px;
            height: 23px;
            background: url("../addons/party_member/public/image/evaluation/return.png") no-repeat;
            background-size: 12px 23px;

        }

        .banner{
            position: relative;
            display: block;
            width: 100%;
            height: 200px;
            background: url("../addons/party_member/public/image/activities/acbg.png") no-repeat;
            background-size: 100% 200px;
        }


        .banner_info span{
            display: block;
            margin: auto;
            color: #ffffff;
        }

        .table_main{
            display: block;
            margin-top: 10px;
            width: 100%;
            height: auto;
        }

        .table_head span{
            display: inline-block;
            position: absolute;
            left: 0;
            height: 20px;
            border-left: 5px solid red;
            padding-left: 10px;
            color: #a7a7a7;
        }




        .star_pic span{
            display: inline-block;
            margin: auto;
            width: 20px;
            height: 20px;
            background: url(../addons/party_member/public/image/evaluation/star.png) no-repeat;
            background-size: 20px 20px;
        }

        .more_info span{
            display: inline-block;
            width: 13px;
            height: 9px;
            background: url(../addons/party_member/public/image/evaluation/more_btn.png) no-repeat;
            background-size: 13px 9px;
        }
        .weui_cell_ft{
            text-align: right;
            color: #888;
        }
        .weui_cell_ft1:after{
            content: " ";
            display: inline-block;
            -webkit-transform: rotate(45deg);
            transform: rotate(45deg);
            height: 13px;
            width: 13px;
            border-width: 2px 2px 0 0;
            border-color: #c8c8cd;
            border-style: solid;
            position: relative;
            top:0;
            margin-left: .3em;
        }
        .weui_cell_ft:after{
            content: " ";
            display: inline-block;
            -webkit-transform: rotate(45deg);
            transform: rotate(45deg);
            height: 13px;
            width: 13px;
            border-width: 2px 2px 0 0;
            border-color: #c8c8cd;
            border-style: solid;
            position: relative;

            top: -21px;
            margin-left: .3em;
        }
        h4{
            display: inline-block;
        }
        .weui-bar__item--on:after{
            content: " ";
            position: absolute;
            bottom: 0;
            top: 100%;
            width: 80%;
            right: 10%;
            height: 1px;
            border-top: 3px solid red;
            -webkit-transform-origin: 0 0;
            transform-origin: 0 0;
            -webkit-transform: scaleY(.5);
            transform: scaleY(.5);
            left: 10%;

        }
        .weui-bar__item--on:before{
            content: " ";
            position: absolute;
            bottom: 0;
            top: 100%;
            width: 80%;
            right: 10%;
            height: 1px;
            border-top: 3px solid red;
            -webkit-transform-origin: 0 0;
            transform-origin: 0 0;
            -webkit-transform: scaleY(.5);
            transform: scaleY(.5);
            left: 10%;

        }
        .weui-panel__bd a{
            border-bottom: 1px solid #cccccc;
        }
    </style>
</head>
<body>
<div class="head">
    <span class="head_return"></span>
    通知公告
</div>
<div class="banner"></div>
<div class="table_main">

    <div class="weui-tab">
        <div class="weui-navbar">
            <a style="font-size: 18px;font-weight: bold;font-family: 微软雅黑;" class="weui-navbar__item weui-bar__item--on" href="#tab1">通知公告</a>
            <a style="font-size: 18px;font-weight: bold;font-family: 微软雅黑;" class="weui-navbar__item " href="#tab2">民主评议</a>
        </div>
        <div class="weui-tab__bd">
            <div id="tab1" class="weui-tab__bd-item weui-tab__bd-item--active">
                {loop $data1['list'] $index $item}
                <div class="weui-panel__bd">

                    <a href="{php echo $this->createMobileUrl('NoticeDetail',array('id'=>$item['id']))}"
                       class="weui-media-box weui-media-box_appmsg">
                        <div class="weui-media-box__hd" style="margin-top: -10px">
                            <img class="weui-media-box__thumb" width="60" height="60" src="../addons/party_member/public/image/noticeReview/tx2.png">
                        </div>
                        <div class="weui-media-box__bd">
                            <div class="weui-media-box__title" style="display: inline-block;width: 85%">
                                <h4>{$item['topic']}</h4>
                                <p>{$item['time']}</p>
                            </div>
                            <span class="weui_cell_ft"></span>
<!--                            <div class="xhtml" style="display: none; width: 0;height: 0;">
                                {$item['activityinfo']}
                            </div>
                            <p class="weui-media-box__desc"></p>-->
                        </div>
                    </a>


                </div>
                {/loop}
            </div>
            <div id="tab2" class="weui-tab__bd-item">
                {loop $data2['list'] $index $item}
                <div class="weui-panel__bd">
                    <a href="{php echo $this->createMobileUrl('ReviewDetail',array('id'=>$item['id']))}"  class="weui-media-box weui-media-box_appmsg">
                        <div class="weui-media-box__hd" >
                            <img class="weui-media-box__thumb" height="60" src="../addons/party_member/public/image/noticeReview/tx3.png">
                        </div>
                        <div class="weui-media-box__bd">
                            <h4 class="weui-media-box__title" style="display: inline-block;width: 85%;font-weight: bold;font-family: 微软雅黑">{$item['topic']}</h4>

                            <p style="color: #333333;font-size: 15px;font-family: 微软雅黑;font-weight: bold" class="weui-media-box__desc">{$item['starttime']}</p>
                        </div>
                        <span class="weui_cell_ft1" ></span>
                    </a>
                </div>
                {/loop}
            </div>
        </div>
    </div>
</div>
<script>
    $(function () {
        $(".xhtml").each(function (index,element) {
            var text = $(element).text();
            $(element).next().text(text)
        })
    })
</script>
</body>
</html>